          -+-     RCode Info 2.00   *   Copyright (C) JP 2o22     -+-

Description
===========
RCode Info extract information from PROGRESS rcode files and save it to the log
file for later analyzing. Output is in csv format.


What is extracting
==================
- extraction status
- path to rcode
- rcode file name
- rcode version
- date of compilation (in local format)
- rcode CRC
- rcode MD5 (If you use in compiler option GENERATE-MD5=yes)

Debug file details (only if you use in compiler option MINIMIZE R-CODE SIZE=no).
  Always 3 parameters for one file.
- file from which was rcode compiled (only debug segment minimize = no)
- path to previous file
- CRC to previous file


CRC Value:
  You can access the CRC value stored in an r-code file using 
    RCODE-INFO:FILE-NAME = "C:\Test\example.r".
    MESSAGE RCODE-INFO:CRC-VALUE.

MD5 Value:
  If you use in compiler option GENERATE-MD5=yes. Starting 9.1D it's value generated
  based on the expanded source code (i.e., the .p or .w file including all the 
  include files) and schema of the temp-tables or temp-table fields that are 
  defined LIKE a database table or its fields. (9.1C only source code)

  You can access the MD5 value stored in an r-code file using RCODE-INFO:MD5-VALUE
  attribute.


Example:
========
error code;path;rcode file;version;date;crc;;source file^source path^crc|include 1^include 1 path\^crc|include 2^include 2 path\^crc|
1;C:\Path\;file.r;1005;22.02.2022 22:22:22;12345;;file.p^C:\Path2\^345|include1.i^C:\Path2\^56789|include2.i^C:\Path2\^7890|


How to use it
=============
- Select input dir, output log, if use directory recursion by searching rcodes.


Command line
============
--log        If no LOG param is used then in app dir file rinfo.txt is created
--dir        This is mandatory param
--recursive  Process subdirs
--debug      This save before each file processing information what file will be
             processed. In case of crash we can identify problem rcode and you 
             can send it to me for further investigation

App accept paths with "" or without.

Example:
  RCodeInfo.exe --log "C:\Test\rlog.txt" --dir "D:\Test\" --recursive


Known limitations, Bugs
=======================
Use this application entirely at your own risk.  The author assumes no liability
for any loss  associated with  the use of  this application. If you do not agree
with the terms, do not use this application.


Contact
=======
Visit https://progress-tools.x10.mx for more information or updates.  If you have
some ideas,  comments,  improvements or you find some bug you can mail to me at
darker@azet.sk


History
=======
+ New Feature
* Changed/Improved Feature
! Fixed Bug
- Removed

1.00 - [01.01.2011]
+ Initial version

2.00 - [26.02.2022]
+ Added support for rcodes V11 & V12
